<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理登录页面</title>
<!----导入bootstrap的外部css文件---->
<link href="${basePath}bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<link href="${basePath}bootstrap-3.3.7-dist/css/style.css" rel="stylesheet">
<link href="${basePath}bootstrap-3.3.7-dist/css/bootstrap-theme.min.css"
	rel="stylesheet" />
<!----导入bootstrap的依赖的jquery文件---->
<script src="${basePath}bootstrap-3.3.7-dist/js/jquery.min.js"></script>
<!----导入bootstrap的外部javascript文件---->
<script src="${basePath}bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>

  

<script language="javascript">


function check() {
	
	var t = true;
	// 获取验证控件对象的内容
	// 验证非空用户名				
	var txtname = document.getElementById("txtUserName").value;
	if (txtname == null || txtname == ""){
		alert("请输入用户名!");
		return t=false;
	}
	
	
	var txtpassword = document.getElementById("txtUserPsw").value;	
	if(txtpassword == null || txtpassword == ""){	
		alert("请输入密码");		
	return 	t = false;
	
	}
	return t;
}
</script>


<style>
/*主体div*/
#container {
	/*相对于body，主体框架居中*/
	margin: 200px 200px;
	width: 1000px;
}
</style>
</head>

<body   style="background:#D8E5F0">

 


	<div id="container">
	
	
		<form class="form-horizontal" action="${basePath}admin/AdminLoginServlet"   onsubmit="return check()"  method="post">
			
			
			<div  class="form-group" >
			
			
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-4 control-label">用户名</label>
					
					<div class="col-sm-4">
						<input type="text" class="form-control" id="txtUserName"
							name="adminUsername" placeholder="用户名">
					</div>													
					
				</div>
				
				
				
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-4 control-label">密&nbsp;&nbsp;&nbsp;码</label>
					<div class="col-sm-4">
						<input type="password" class="form-control" id="txtUserPsw"
							name="adminPassword" placeholder="密码">
					</div>
				</div>
			
			
			
			</div>

			<div class="form-group">
				<div class="col-sm-offset-4 col-sm-6">
					<button type="submit" class="btn btn-default"    >登录</button>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<button type="reset" class="btn btn-default">重置</button>
				</div>

			</div>
		</form>

	</div>
</body>

</html>